
import 'dart:convert';

List<ReadRanking> readRankingFromJson(String str) => List<ReadRanking>.from(json.decode(str).map((x) => ReadRanking.fromJson(x)));

String readRankingToJson(List<ReadRanking> data) => json.encode(List<dynamic>.from(data.map((x) => x.toJson())));

class ReadRanking {
    ReadRanking({
        this.member,
        this.score,
        this.rank,
    });

    String? member;
    double? score;
    int? rank;

    factory ReadRanking.fromJson(Map<String, dynamic> json) => ReadRanking(
        member: json["member"],
        score: json["score"],
        rank: json["rank"],
    );

    Map<String, dynamic> toJson() => {
        "member": member,
        "score": score,
        "rank": rank,
    };
}
